#ifndef DW_GRAPHICS_CONFIG_H
#	define DW_GRAPHICS_CONFIG_H

//! \brief Version definitions
#define DW_GRAPHICS_VERSION 000100
#define DW_GRAPHICS_VERSION_STR "00.01.00"

//! \brief Backend definitions
#define DW_GRAPHICS_BACKEND_UNKNOWN      0
#define DW_GRAPHICS_BACKEND_DIRECTX_09 9
#define DW_GRAPHICS_BACKEND_DIRECTX_10 10
#define DW_GRAPHICS_BACKEND_DIRECTX_11 11
#define DW_GRAPHICS_BACKEND_OPENGL_210 210
#define DW_GRAPHICS_BACKEND_OPENGL_320 320
#define DW_GRAPHICS_BACKEND_OPENGL_410 420

#define DW_GRAPHICS_BACKEND_DIRECTX ((DW_GRAPHICS_BACKEND == DW_GRAPHICS_BACKEND_DIRECTX_09) || (DW_GRAPHICS_BACKEND == DW_GRAPHICS_BACKEND_DIRECTX_10) || (DW_GRAPHICS_BACKEND == DW_GRAPHICS_BACKEND_DIRECTX_11))
#define DW_GRAPHICS_BACKEND_OPENGL ((DW_GRAPHICS_BACKEND == DW_GRAPHICS_BACKEND_OPENGL_210) || (DW_GRAPHICS_BACKEND == DW_GRAPHICS_BACKEND_OPENGL_320) || (DW_GRAPHICS_BACKEND == DW_GRAPHICS_BACKEND_OPENGL_410))

#include "graphics/configuser.h"
#include "graphics/configautodetect.h"

#if !defined(DW_GRAPHICS_BACKEND) || (DW_GRAPHICS_BACKEND == DW_GRAPHICS_BACKEND_UNKNOWN)
#	define DW_GRAPHICS_BACKEND DW_GRAPHICS_BACKEND_AUTODETECT
#endif // !DW_GRAPHICS_BACKEND

#if DW_GRAPHICS_BACKEND_OPENGL
#	define DW_GRAPHICS_BACKEND_VERSION DW_GRAPHICS_BACKEND
#	define DW_GRAPHICS_BACKEND_STR "OpenGL " dwQuote_2(DW_GRAPHICS_BACKEND_VERSION)
#elif DW_GRAPHICS_BACKEND_DIRECTX
#	define DW_GRAPHICS_BACKEND_VERSION DW_GRAPHICS_BACKEND
#	define DW_GRAPHICS_BACKEND_STR "DirectX " dwQuote_2(DW_GRAPHICS_BACKEND_VERSION)
#else
#	error "No backend found"
#endif // !DW_GRAPHICS_BACKEND_OPENGL

#pragma message("Backend: " DW_GRAPHICS_BACKEND_STR)

#endif // !DW_GRAPHICS_CONFIG_H
